Skip to main content

WooCommerce plugin

WooCommerce is an open source, completely customizable ecommerce platform for entrepreneurs worldwide. It offers a flexible way to build an ecommerce store with WordPress.

Integrate your WooCommerce site with the PayBy Payment Gateway to accept payments via debit card, credit card, netbanking (supports 3D Secure) or through any of our supported wallets.

The plugin offers seamless integration, allowing the customer to pay on your website without being redirected. This allows the plugin to work across all browsers and ensures compatibility with the latest version of WooCommerce.


Product application

Step 1: Create your account in the PayBy Merchant Portal.

EnvironmentURL
Productionhttps://b.payby.com
UAThttps://uat-web-merchant.test2pay.com/

Step 2: Visit the Product List to see the product named Basic Payment Gateway and click APPLY NOW.

application application


Step 3:Enter the merchant information and submit the application.

fill


Step 4:Once the application is submitted, it will be reviewed by the PayBy team. This usually takes 1-2 working days.

API Management

After submitting your product activation request, please visit the API Management of the merchant portal to configure the basic parameters required for the integration.

api-management


Step 1: Generating the security keys

### Generate private key
# PayBy_key.pem Private key file name
# 2048 Private key size, at least 2048
openssl genrsa -out PayBy_key.pem 2048

### Export public key
# PayBy_key.pem Private key generated in the previous step # PayBy_key_public.pem Exported public key name
openssl rsa -in PayBy_key.pem -out PayBy_key_public.pem -pubout

### Export private key for Java
# PayBy_key.pem Private key generated in the 1st step
# PayBy_key_Private.pem
openssl pkcs8 -in PayBy_key.pem -topk8 -nocrypt -out PayBy_key_private.pem

Step 2: Upload your public key

Upload "PayBy_key_public.pem" on this step. This pem is used to signiture the request from merchant.


Step 3: Download PayBy Public Key

This pem is used to Verify the response from PayBy and Encrypting senitive information.

object-keys1


Step 4:Bind IP address (Required)

This IP address is outbound IP of Merchant system. PayBy provides you with a strong API through which you can enjoy services such as placeOrder, getOrder, etc. View How To Use via Developers website. For security reasons, we recommend that API should bind at least one IP address. If there is only one IP address, you can enter it directly. If there is more than one IP address, you should separate them with halfwidth comma (e.g. 192.168.1.1,192.168.1.2,192.168.1.3) or Replace with (e.g. 192.168..,172.16.9.,192.168.1.1). If you want to allow any ip addresses,you can only enter *."


Integration Steps

Step 1: Download

https://github.com/PayBy/Extenstions/blob/master/woocommerce-payment-gateway-payby.zip


Step 2: Install Plugin

  1. Set the payment currency to AED – United Arab Emirates Dirham.

pic01

  1. Set up the Wordpress And Woocommerce.
  2. Log into the admin page.
  3. Navigate to Plugins → Add New
  4. Upload the compressed files called 'woocommerce-payment-gateway-payby.zip'.

pic02

  1. Click the Install Now button.

  2. Navigate to WooCommerce → Installed Plugins

  3. Click on the Activate button.

pic03


Step 3: Configure WooCommerce

  1. Navigate to WooCommerce → Setting
  2. Set PayBy as the payment method.

pic04

  1. Enter the Subject provided.
  2. Enter the Merchant Partner Id provided.
  3. Enter the Merchant Private Key provided. (Don't remove the -----BEGIN PRIVATE KEY----- and -----END PRIVATE KEY-----)
  4. Enter the PayBy Public Key provided. (Don't remove the -----BEGIN PUBLIC KEY----- and -----END PUBLIC KEY-----)
  5. Select Run Mode UAT for testing, Production for general usage.
  6. Enter PayBy Payment OrderNo Prefix like 'wp_'
  7. Click on Save changes to update the settings.

pic05


Step 4: Check front checkout page

1: Select PayBy as the payment method and place the order.

pic06


2: The page will be redirected to the PayPage, choose to pay by SCAN PAY or CARD PAY.
Option A:

pic08

Option B:

pic08


Step 3: View payment results in Orders. pic09